#ifndef _DB_ALBUM_H_
#define _DB_ALBUM_H_

typedef struct tagAlbumIndex
{
	char album[MAXID3ITEM];
	unsigned int count;
	unsigned int offset;
}ALBUMINDEX;

int album_build(void);
int get_albums(unsigned int offset, RECID3ITEM* albums, unsigned int cnt);
int get_audio_count_of_album(RECID3ITEM album);
int get_audio_name_by_album(char* album, unsigned int offset, RECUTF8NAME* fname, unsigned int cnt);
int get_audio_record_by_album(char* album, unsigned int offset, AUDIORECORD* records, unsigned int cnt);
int delete_album(char* path);

#endif
